import express from 'express';
import baidu from '../controllers/baidu';

const router = express.Router();

// 操作百度音频资源接口
router.post('/play_audio',baidu.playBaiduAudio);
router.post('/play_control',baidu.playControl);
router.post('/play_list',baidu.getPlayList);
router.post('/control_device',baidu.control);

router.post('/get_new_version',baidu.getNewVersion);
router.post('/get_version',baidu.getVersion);
router.post('/upgrade_device',baidu.upgradeDevice);
router.post('/check_upgrade',baidu.checkUpgrade);

router.post('/search_album',baidu.searchAlbum);
router.post('/search_audio',baidu.searchAudio);
router.post('/get_track_list',baidu.getTrackList);
router.post('/get_track',baidu.getTrack);
router.post('/custom_play',baidu.customPlay);

export default router;